﻿namespace Commons.Helpers
{
    public static class StringHelper
    {
        public static string SubStringComma(string sub)
        {
            var result = sub;
            try
            {
                if (sub.Substring(sub.Length - 1, 1) == ",")
                {
                    result = sub.Substring(0, sub.Length - 1);
                }
            }
            catch (Exception ex)
            {
                throw new CustomException("图片错误");
            }
            return result;
        }
    }
}
